package com.hontech.bv.model.pick

import com.hontech.bv.utils.isBitSet

/**
 * 取物门控制板 switch_value 定义
 */
class SwitchValue (value: Int) {

    val isLeftGuard = value.isBitSet(0)
    val isRightGuard = value.isBitSet(1)
    val isLeftOpen = value.isBitSet(2)
    val isLeftClose = value.isBitSet(3)
    val isRightOpen = value.isBitSet(4)
    val isRightClose = value.isBitSet(5)
    val isLeftCheck = value.isBitSet(6)
    val isRightCheck = value.isBitSet(7)
    val isStrawClose = value.isBitSet(8)
}

